const routes = [
    
    {
        path: '/index',
        meta:{
            title:'主页',
            num:1
        },
        component: () => import('../views/Index.vue'),
        children:[
            {
                path: '/index/business',
                name: 'business',
                meta:{
                    title:'出差申请',
                    num:11
                },
                component: () => import('../views/index/Business.vue')
            },
            {
                path: '/index/outside',
                name: 'outside',
                meta:{
                    title:'外勤打卡',
                    num:12
                },
                component: () => import('../views/index/Outside.vue')
            },
            {
                path: '/index/leave',
                name: 'leave',
                meta:{
                    title:'请假申请',
                    num:13
                },
                component: () => import('../views/index/Leave.vue')
            },
            {
                path: '/index/work',
                name: 'work',
                meta:{
                    title:'加班申请',
                    num:14
                },
                component: () => import('../views/index/Work.vue')
            },
            {
                path: '/index/*',
                component: () => import('../views/NotFound.vue')
            },
            {
                path:'/index',
                redirect:'/index/business'
            },
        ]
    }
]

export default routes